/**
 * @filename:Stock 2023-4-19
 * Copyright(c) 2022 Wonder Co. Ltd. 
 * All right reserved. 
 */
package com.wonder.app.domain;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.FieldFill;

/**   
 * @Description:TODO(股票管理实体类)
 * 
 * @author: Wonder
 * 
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sn_stock")
@ApiModel(value="sn_stock对象", description="股票管理表")
public class Stock extends Model<Stock> {

	private static final long serialVersionUID = 1681912671853114L;
	
	@TableId(value ="id", type = IdType.AUTO)
	@ApiModelProperty(name = "id" , value = "编号")
    private Long id;
    
    @TableField(value = "short_code") 	
	@ApiModelProperty(name = "short_code" , value = "数字代码")
    private String short_code;
    
    @TableField(value = "code") 	
	@ApiModelProperty(name = "code" , value = "股票代码")
    private String code;
    
    @TableField(value = "name") 	
	@ApiModelProperty(name = "name" , value = "股票名称")
    private String name;
    
    @TableField(value = "pinyin") 	
	@ApiModelProperty(name = "pinyin" , value = "拼音")
    private String pinyin;
    
    @TableField(value = "industry") 	
	@ApiModelProperty(name = "industry" , value = "行业")
    private String industry;
    
    @TableField(value = "region") 	
	@ApiModelProperty(name = "region" , value = "地区")
    private String region;
    
    @TableField(value = "state") 	
	@ApiModelProperty(name = "state" , value = "股票状态")
    private String state;
    
    @TableField(value = "concept") 	
	@ApiModelProperty(name = "concept" , value = "概念")
    private String concept;
    
    @TableField(value = "bourse") 	
	@ApiModelProperty(name = "bourse" , value = "所属交易所")
    private String bourse;
    
    @TableField(value = "stop") 	
	@ApiModelProperty(name = "stop" , value = "是否停牌")
    private Integer stop;
    
    @TableField(value = "close") 	
	@ApiModelProperty(name = "close" , value = "是否退市")
    private Integer close;
    
    @TableField(value = "buy_up") 	
	@ApiModelProperty(name = "buy_up" , value = "可以买涨")
    private Integer buy_up;
    
    @TableField(value = "buy_down") 	
	@ApiModelProperty(name = "buy_down" , value = "可以买跌")
    private Integer buy_down;
    
    @TableField(value = "status") 	
	@ApiModelProperty(name = "status" , value = "状态")
    private Integer status;
    
    @TableField(value = "type") 	
	@ApiModelProperty(name = "type" , value = "股票类型")
    private Integer type;
    
    @TableField(value = "buy") 	
	@ApiModelProperty(name = "buy" , value = "可以买")
    private Integer buy;
    
    @TableField(value = "sell") 	
	@ApiModelProperty(name = "sell" , value = "可以 卖")
    private Integer sell;
    
    @TableField(value = "trade") 	
	@ApiModelProperty(name = "trade" , value = "是否交易")
    private Integer trade;
    
	@TableField(value = "create_time",fill=FieldFill.INSERT) 
	@ApiModelProperty(name = "create_time" , value = "添加修改时间")
    private Date create_time;
    
    @TableField(value = "stop_time") 	
	@ApiModelProperty(name = "stop_time" , value = "停牌时间")
    private Date stop_time;
    
    @TableField(value = "lastamount") 	
	@ApiModelProperty(name = "lastamount" , value = "昨日成交额")
    private BigDecimal lastamount;
    
    @TableField(value = "lastvolumn") 	
	@ApiModelProperty(name = "lastvolumn" , value = "昨日成交量")
    private Double lastvolumn;
    
    @TableField(value = "control_ratio") 	
	@ApiModelProperty(name = "control_ratio" , value = "风控比例")
    private Long control_ratio;
    
    @TableField(value = "control_amount") 	
	@ApiModelProperty(name = "control_amount" , value = "额度")
    private Double control_amount;
    
    @TableField(value = "control_remaining") 	
	@ApiModelProperty(name = "control_remaining" , value = "剩余额度")
    private Double control_remaining;
    
    @TableField(value = "pclose") 	
	@ApiModelProperty(name = "pclose" , value = "昨日收盘价")
    private Double pclose;
    
    @TableField(value = "stock_value") 	
	@ApiModelProperty(name = "stock_value" , value = "市值")
    private Double stock_value;
    
    @TableField(value = "enable_time") 	
	@ApiModelProperty(name = "enable_time" , value = "开始交易日期")
    private Date enable_time;
    
    @TableField(value = "stock_value_market") 	
	@ApiModelProperty(name = "stock_value_market" , value = "流通市值")
    private Double stock_value_market;
    
    @TableField(value = "first_acquisition_time") 	
	@ApiModelProperty(name = "first_acquisition_time" , value = "首次获取时间")
    private Date first_acquisition_time;
    

	@Override
    public Serializable pkVal() {
        return this.id;
    }
   
}
